Optimal. Leaf size=89 \[ -\frac{1}{2} a d^2 \sin (c) \text{CosIntegral}(d x)-\frac{1}{2} a d^2 \cos (c) \text{Si}(d x)-\frac{a \sin (c+d x)}{2 x^2}-\frac{a d \cos (c+d x)}{2 x}+b d \cos (c) \text{CosIntegral}(d x)-b d \sin (c) \text{Si}(d x)-\frac{b \sin (c+d x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.270196, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {6742, 3297, 3303, 3299, 3302} \[ -\frac{1}{2} a d^2 \sin (c) \text{CosIntegral}(d x)-\frac{1}{2} a d^2 \cos (c) \text{Si}(d x)-\frac{a \sin (c+d x)}{2 x^2}-\frac{a d \cos (c+d x)}{2 x}+b d \cos (c) \text{CosIntegral}(d x)-b d \sin (c) \text{Si}(d x)-\frac{b \sin (c+d x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{(a+b x) \sin (c+d x)}{x^3} \, dx &=\int \left (\frac{a \sin (c+d x)}{x^3}+\frac{b \sin (c+d x)}{x^2}\right ) \, dx\\ &=a \int \frac{\sin (c+d x)}{x^3} \, dx+b \int \frac{\sin (c+d x)}{x^2} \, dx\\ &=-\frac{a \sin (c+d x)}{2 x^2}-\frac{b \sin (c+d x)}{x}+\frac{1}{2} (a d) \int \frac{\cos (c+d x)}{x^2} \, dx+(b d) \int \frac{\cos (c+d x)}{x} \, dx\\ &=-\frac{a d \cos (c+d x)}{2 x}-\frac{a \sin (c+d x)}{2 x^2}-\frac{b \sin (c+d x)}{x}-\frac{1}{2} \left (a d^2\right ) \int \frac{\sin (c+d x)}{x} \, dx+(b d \cos (c)) \int \frac{\cos (d x)}{x} \, dx-(b d \sin (c)) \int \frac{\sin (d x)}{x} \, dx\\ &=-\frac{a d \cos (c+d x)}{2 x}+b d \cos (c) \text{Ci}(d x)-\frac{a \sin (c+d x)}{2 x^2}-\frac{b \sin (c+d x)}{x}-b d \sin (c) \text{Si}(d x)-\frac{1}{2} \left (a d^2 \cos (c)\right ) \int \frac{\sin (d x)}{x} \, dx-\frac{1}{2} \left (a d^2 \sin (c)\right ) \int \frac{\cos (d x)}{x} \, dx\\ &=-\frac{a d \cos (c+d x)}{2 x}+b d \cos (c) \text{Ci}(d x)-\frac{1}{2} a d^2 \text{Ci}(d x) \sin (c)-\frac{a \sin (c+d x)}{2 x^2}-\frac{b \sin (c+d x)}{x}-\frac{1}{2} a d^2 \cos (c) \text{Si}(d x)-b d \sin (c) \text{Si}(d x)\\ \end{align*}
Mathematica [A] time = 0.280725, size = 76, normalized size = 0.85 \[ -\frac{d x^2 \text{CosIntegral}(d x) (a d \sin (c)-2 b \cos (c))+d x^2 \text{Si}(d x) (a d \cos (c)+2 b \sin (c))+a \sin (c+d x)+a d x \cos (c+d x)+2 b x \sin (c+d x)}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 88, normalized size = 1. \begin{align*}{d}^{2} \left ({\frac{b}{d} \left ( -{\frac{\sin \left ( dx+c \right ) }{dx}}-{\it Si} \left ( dx \right ) \sin \left ( c \right ) +{\it Ci} \left ( dx \right ) \cos \left ( c \right ) \right ) }+a \left ( -{\frac{\sin \left ( dx+c \right ) }{2\,{d}^{2}{x}^{2}}}-{\frac{\cos \left ( dx+c \right ) }{2\,dx}}-{\frac{{\it Si} \left ( dx \right ) \cos \left ( c \right ) }{2}}-{\frac{{\it Ci} \left ( dx \right ) \sin \left ( c \right ) }{2}} \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.96097, size = 150, normalized size = 1.69 \begin{align*} -\frac{{\left ({\left (a{\left (-i \, \Gamma \left (-2, i \, d x\right ) + i \, \Gamma \left (-2, -i \, d x\right )\right )} \cos \left (c\right ) - a{\left (\Gamma \left (-2, i \, d x\right ) + \Gamma \left (-2, -i \, d x\right )\right )} \sin \left (c\right )\right )} d^{3} +{\left (2 \, b{\left (\Gamma \left (-2, i \, d x\right ) + \Gamma \left (-2, -i \, d x\right )\right )} \cos \left (c\right ) + b{\left (-2 i \, \Gamma \left (-2, i \, d x\right ) + 2 i \, \Gamma \left (-2, -i \, d x\right )\right )} \sin \left (c\right )\right )} d^{2}\right )} x^{2} + 2 \, b \cos \left (d x + c\right )}{2 \, d x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6474, size = 351, normalized size = 3.94 \begin{align*} -\frac{2 \, a d x \cos \left (d x + c\right ) + 2 \,{\left (a d^{2} x^{2} \operatorname{Si}\left (d x\right ) - b d x^{2} \operatorname{Ci}\left (d x\right ) - b d x^{2} \operatorname{Ci}\left (-d x\right )\right )} \cos \left (c\right ) + 2 \,{\left (2 \, b x + a\right )} \sin \left (d x + c\right ) +{\left (a d^{2} x^{2} \operatorname{Ci}\left (d x\right ) + a d^{2} x^{2} \operatorname{Ci}\left (-d x\right ) + 4 \, b d x^{2} \operatorname{Si}\left (d x\right )\right )} \sin \left (c\right )}{4 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b x\right ) \sin{\left (c + d x \right )}}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.13697, size = 1075, normalized size = 12.08 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]